package com.iaz.tech.tools.ai.neuron.proj;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.iaz.tech.tools.property.IPropertyAble;
import com.iaz.tech.tools.property.project.Project;

/**
 * 神经元项目工具类
 */
public class NeuronProjectTools {
    /**
     * 日志
     */
	private final static Logger logger = (Logger) LoggerFactory.getLogger(NeuronProjectTools.class);
    /**
     * Project 创建项目
     * @param _project_id
     * @return
     */
    public static Project createProject(IPropertyAble projInfo) {
        Project result = null;
        try {
            if (projInfo == null) {
                throw new Exception("入口参数projInfo 为空。");
            }
            /*  创建项目 */
            result = new Project();         
            result.setProperties(projInfo); 

            return result;
        } catch(Exception e) {
            logger.error("createProject error: {}", e.getMessage());
        }
        return result;
    }


}
